<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 10px solid skyblue;
            /*  设置边框图片路径 */
            
            border-image-source: url('./img/border.jpg');
            /* 设置边框图片的平铺方式
            
             */
            border-image-slice: 167 167 167 167;
            border-image-repeat: round;
            border-image-width: 20px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>